﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class heropublic
    {
        public string heroName;//英雄名
        public string heroInfo;//英雄信息
        public string nickName;//昵称
        public int attack;//攻击力
        public int defense;//防御力
        public int speed;//速度
       

        
        

        public void heroprint()
        {
            Console.WriteLine("我是英雄{0},{1},我的昵称是{2},攻击力为{3}，防御力为{4}，速度为{5}",
            this.heroName, this.heroInfo, this.nickName, this.attack, this.defense, this.speed);
        }

    }
}
